package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 物料质量信息对象 erp_material_quality
 *
 * @author wutao
 * @date 2024-07-04
 */
@TableName("erp_material_quality")
@ApiModel(value = "erp_material_quality对象", description = "物料质量信息")
@Data
public class MaterialQualityEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 物料质量主键id
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 物料id
     */
    @ApiModelProperty("物料id")
    @TableField("material_id")
    @Excel(name = "物料id")
    private String materialId;

    /**
     * 来料检验(0否1是)
     */
    @ApiModelProperty("来料检验(0否1是)")
    @TableField("f_check_incoming")
    @Excel(name = "来料检验(0否1是)")
    private String fCheckIncoming;

    /**
     * 抽样方案dialog
     */
    @ApiModelProperty("抽样方案dialog")
    @TableField("f_inc_samp_scheme_id")
    @Excel(name = "抽样方案dialog")
    private String fIncSampSchemeId;

    /**
     * 质检方案dialog
     */
    @ApiModelProperty("质检方案dialog")
    @TableField("f_inc_qc_scheme_id")
    @Excel(name = "质检方案dialog")
    private String fIncQcSchemeId;

    /**
     * 产品检验(0否1是)
     */
    @ApiModelProperty("产品检验(0否1是)")
    @TableField("f_check_product")
    @Excel(name = "产品检验(0否1是)")
    private String fCheckProduct;

    /**
     * 产品首检(0否1是)
     */
    @ApiModelProperty("产品首检(0否1是)")
    @TableField("f_is_first_inspect")
    @Excel(name = "产品首检(0否1是)")
    private String fIsFirstInspect;

    /**
     * 首检控制方式
     */
    @ApiModelProperty("首检控制方式")
    @TableField("f_first_q_c_control_type")
    @Excel(name = "首检控制方式")
    private String fFirstQCControlType;

    /**
     * 库存检验(0否1是)
     */
    @ApiModelProperty("库存检验(0否1是)")
    @TableField("f_check_stock")
    @Excel(name = "库存检验(0否1是)")
    private String fCheckStock;

    /**
     * 退货检验(0否1是)
     */
    @ApiModelProperty("退货检验(0否1是)")
    @TableField("f_check_return")
    @Excel(name = "退货检验(0否1是)")
    private String fCheckReturn;

    /**
     * 发货检验(0否1是)
     */
    @ApiModelProperty("发货检验(0否1是)")
    @TableField("f_check_delivery")
    @Excel(name = "发货检验(0否1是)")
    private String fCheckDelivery;

    /**
     * 其他检验(0否1是)
     */
    @ApiModelProperty("其他检验(0否1是)")
    @TableField("f_check_other")
    @Excel(name = "其他检验(0否1是)")
    private String fCheckOther;

    /**
     * 受托材料检验(0否1是)
     */
    @ApiModelProperty("受托材料检验(0否1是)")
    @TableField("f_check_entrusted")
    @Excel(name = "受托材料检验(0否1是)")
    private String fCheckEntrusted;

    /**
     * 委外退料检验(0否1是)
     */
    @ApiModelProperty("委外退料检验(0否1是)")
    @TableField("f_check_sub_ftn_mtrl")
    @Excel(name = "委外退料检验(0否1是)")
    private String fCheckSubFtnMtrl;

    /**
     * 启用库存周期复检(0否1是)
     */
    @ApiModelProperty("启用库存周期复检(0否1是)")
    @TableField("f_enable_cyclist_q_c_s_t_k")
    @Excel(name = "启用库存周期复检(0否1是)")
    private String fEnableCyclistQCSTK;

    /**
     * 启用库存周期复检提醒0否1是)
     */
    @ApiModelProperty("启用库存周期复检提醒0否1是)")
    @TableField("f_enable_cyclist_QCSTKEW")
    @Excel(name = "启用库存周期复检提醒0否1是)")
    private String fEnableCyclistQcstkew;

    /**
     * 复检周期
     */
    @ApiModelProperty("复检周期")
    @TableField("f_stock_cycle")
    @Excel(name = "复检周期")
    private String fStockCycle;

    /**
     * 质检组
     */
    @ApiModelProperty("质检组")
    @TableField("f_inspect_group_id")
    @Excel(name = "质检组")
    private String fInspectGroupId;

    /**
     * 质检员
     */
    @ApiModelProperty("质检员")
    @TableField("f_inspector_id")
    @Excel(name = "质检员")
    private String fInspectorId;

    /**
     * 提醒提前期
     */
    @ApiModelProperty("提醒提前期")
    @TableField("f_e_w_lead_day")
    @Excel(name = "提醒提前期")
    private String fEWLeadDay;

    /**
     * 是否使用(1是0否)
     */
    @ApiModelProperty ( "是否使用(1是2否)" )
    @TableField (value = "is_used")
    @TableLogic
    @Excel ( name = "是否使用(1是2否)" )
    private Integer isUsed;
}
